package com.wjk.kylin.mall.order.feign.fallback;

import com.wjk.kylin.mall.common.core.dto.base.DataOutDTO;
import com.wjk.kylin.mall.order.feign.ProductFeignService;
import lombok.extern.slf4j.Slf4j;

/**
 * 调用方熔断保护
 */
@Slf4j
//@Service
public class ProductFeignServiceFallback implements ProductFeignService {
    @Override
    public DataOutDTO<String> demo() {
        log.error("熔断方法调用.....demo()");
        DataOutDTO<String> dto = new DataOutDTO<>();
        dto.setData("ProductFeignServiceFallback.demo");
        return dto;
    }
}
